#include <iostream>
#include <string>
#include "scheduler.cpp"

using namespace std;

int main () {
  Scheduler sl = Scheduler(LOTTERY);

  char trace[256] = "t2.trace";
  Process* p = new Process (1, 5, 0, trace);

  int tick = 0;

  sl.AddProcess(p->returnPid(), p);

  SchedulerReturn run_output;
  run_output.return_code = RET_SUCCESS;

  cout << "Running..." << endl;

  while (run_output.return_code != SRET_NO_ACTIVE_PROCESSES &&
	 run_output.return_code != SRET_NO_PROCESSES) {
    run_output = sl.run(tick);
    tick++;
  }
}

